import request from '@/utils/request'

// 查询楼栋单元列表
export function listBuildUnit(data) {
  return request({
    url: '/buildUnit/listBuildUnit',
    method: 'post',
      data: data
  })
}

// 查询楼栋单元详细
export function getBuildUnit(id) {
  return request({
    url: '/buildUnit/getBuildUnitById?id=' + id,
    method: 'get'
  })
}

// 新增楼栋单元
export function addBuildUnit(data) {
  return request({
    url: '/buildUnit/addBuildUnit',
    method: 'post',
    data: data
  })
}

// 修改楼栋单元
export function updateBuildUnit(data) {
  return request({
    url: '/buildUnit/editBuildUnit',
    method: 'post',
    data: data
  })
}

// 删除楼栋单元
export function delBuildUnit(id) {
  return request({
    url: '/buildUnit/delBuildUnit?ids=' + id,
    method: 'delete'
  })
}
